import request from '@/utils/request'

// 查询行政班级上课列表
export function listCourseclassMetaclass(query) {
  return request({
    url: '/score/CourseclassMetaclass/list',
    method: 'get',
    params: query
  })
}

// 查询行政班级上课详细
export function getCourseclassMetaclass(courseclassId) {
  return request({
    url: '/score/CourseclassMetaclass/' + courseclassId,
    method: 'get'
  })
}

// 新增行政班级上课
export function addCourseclassMetaclass(data) {
  return request({
    url: '/score/CourseclassMetaclass',
    method: 'post',
    data: data
  })
}

// 修改行政班级上课
export function updateCourseclassMetaclass(data) {
  return request({
    url: '/score/CourseclassMetaclass',
    method: 'put',
    data: data
  })
}

// 删除行政班级上课
export function delCourseclassMetaclass(courseclassId) {
  return request({
    url: '/score/CourseclassMetaclass/' + courseclassId,
    method: 'delete'
  })
}
// 删除行政班级上课
export function delCourseclassMetaclassId(data) {
  return request({
    url: '/score/CourseclassMetaclass/deleteId',
    method: 'post',
    data: data
  })
}

export function upload() {
  return request({
    url: '/score/downloadExcel' ,
    method: 'post'
  })
}
